package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.*;
import com.atguigu.tingshu.vo.order.TrackPayVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface TrackInfoService extends IService<TrackInfo> {

    //声音上传接口
    UploadTrackVo trackInfoService(MultipartFile file);

    //新增声音数据
    void saveTrackInfo(TrackInfoVo trackInfoVo);

    //获取当前用户声音分页列表
    IPage<TrackListVo> findUserTrackPage(Integer pageNum, Integer pageSize, TrackInfoQuery trackInfoQuery);

    //修改声音接口
    void updateTrackInfo(Long trackId, TrackInfoVo trackInfoVo);

    //删除声音接口
    void removeTrackInfo(Long trackId);

    //根据专辑id查询声音分页列表
    IPage<AlbumTrackListVo> findAlbumTrackPage(Long albumId, Integer pageNum, Integer pageSize);

    //修改声音播放次数
    void updateTrackStat(TrackStatMqVo trackStatMqVo);

    //根据声音id查询声音统计信息
    TrackStatVo getTrackStatVoByTrackId(Long trackId);

    //根据声音id查询声音购买信息
    List<TrackPayVo> findUserTrackPaidList(Long trackId);

    //批量获取下单付费声音列表
    List<TrackInfo> findPaidTrackInfoList(Long trackId, Integer trackCount);
}
